package com.zry.simpleBlog.comment.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zry
 * @create 2022-04-21 17:50
 */
@Configuration
public class SwaggerConfig {
    
    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("个人博客项目-->接口文档")
                        .description("个人博客Api")
                        .version("1.0")
                        .contact(new Contact()
                                .name("个人博客项目开发")
                                .email("1447051936@qq.com")));
    }
}